package com.xjrh.traintravel.collector.netty.command.file;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 文件内容
 *
 * @author snps
 * @create 2022-02-08 10:00
 * @describe
 **/
public class FileContent extends BaseCommand implements Serializable {

    private static final long serialVersionUID = -5104439707425460095L;


    /**
     * 总包数
     */
    private int packageCount;

    /**
     * 当前包号
     */
    private int currentPackageNumber;

    /**
     * 文件数据长度
     */
    private int fileContentLength;

    /**
     * 文件数据内容
     */
    private String fileContent;


    /*****************************************
     * Getter and Setter
     */
    public int getPackageCount() {
        return packageCount;
    }

    public void setPackageCount(int packageCount) {
        this.packageCount = packageCount;
    }

    public int getCurrentPackageNumber() {
        return currentPackageNumber;
    }

    public void setCurrentPackageNumber(int currentPackageNumber) {
        this.currentPackageNumber = currentPackageNumber;
    }

    public int getFileContentLength() {
        return fileContentLength;
    }

    public void setFileContentLength(int fileContentLength) {
        this.fileContentLength = fileContentLength;
    }

    public String getFileContent() {
        return fileContent;
    }

    public void setFileContent(String fileContent) {
        this.fileContent = fileContent;
    }


    @Override
    public String toString() {
        return "FileContent{" +
                "packageCount=" + packageCount +
                ", currentPackageNumber=" + currentPackageNumber +
                ", fileContentLength=" + fileContentLength +
                ", fileContent='" + fileContent + '\'' +
                '}';
    }

}